From 0f973c2f606d56a75b3a0410e8d54ca65e3d3f78 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 28 Jul 2016 10:26:32 -0700 Subject: [PATCH] Add a sleep to a rebuilding test to fix nightlies Just the standard issue with fs timestamps, OSX, etc. --- tests/workspaces.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/workspaces.rs b/tests/workspaces.rs index b17b56526..527990735 100644 --- a/tests/workspaces.rs +++ b/tests/workspaces.rs @@ -5,6 +5,7 @@ extern crate hamcrest; use std::io::{Read, Write}; use std::fs::File; +use cargotest::sleep_ms; use cargotest::support::{project, execs}; use cargotest::support::registry::Package; use hamcrest::{assert_that, existing_file, existing_dir, is_not}; @@ -863,6 +864,8 @@ fn rebuild_please() { assert_that(p.cargo("run").cwd(p.root().join("bin")), execs().with_status(0)); + sleep_ms(1000); + t!(t!(File::create(p.root().join("lib/src/lib.rs"))).write_all(br#" pub fn foo() -> u32 { 1 } "#)); -- 2.30.2